<!DOCTYPE HTML>
<html>

	<head>
		<script type="text/javascript" async="" src="${rc.contextPath}/js/conversion.js"></script>
		<script src="${rc.contextPath}/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script>
		<style type="text/css"></style>
		<meta content="no-siteapp" http-equiv="Cache-Control">
		<link media="handheld" rel="alternate">
		<!-- end 云适配 -->
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<title>$!companyVo.company.company_name -城建就业指导网</title>

		<script type="text/javascript">
			console.log(1);
		</script>
		<link rel="stylesheet" href="${rc.contextPath}/bootstrap/css/bootstrap.css" />
		<link href="${rc.contextPath}/css/style.css" type="text/css" rel="stylesheet">
		<link href="${rc.contextPath}/css/external.min.css" type="text/css" rel="stylesheet">
		<link href="${rc.contextPath}/css/popup.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="${rc.contextPath}/js/jquery.1.10.1.min.js"></script>
		<script type="text/javascript" src="${rc.contextPath}/bootstrap/js/bootstrap.min.js"></script>
		<script src="${rc.contextPath}/js/jquery.lib.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="${rc.contextPath}/js/ajaxfileupload.js"></script>
		<script src="${rc.contextPath}/js/additional-methods.js" type="text/javascript"></script>
		<!--[if lte IE 8]>
		    <script type="text/javascript" src="${rc.contextPath}/js/excanvas.js"></script>
		<![endif]-->
		<script src="${rc.contextPath}/js/conv.js" type="text/javascript"></script>
	</head>

	<body>
		
		#parse("header.html")
		
		<div id="body">
			<!-- end #header -->
			<div id="container">
				<!-- <script src="../js/swfobject_modified.js" type="text/javascript"></script> -->
				<div class="clearfix">

					<div class="content_l">
						<div class="c_detail">
							<div style="background-color:#fff;" class="c_logo">
								<a title="上传公司LOGO" >
									<img width="190" height="190" alt="公司logo" 
										src="http://127.0.0.1:8080/image/companylogo/$!companyVo.company.company_logo">

								</a>
							</div>

							<div class="c_box companyName">
								<h2 title="$!companyVo.company.company_name">$!companyVo.company.company_name</h2>
								#if($!curr_user)
		                        	#if($!collection)
		                        	<a class="jd_collection collected" data-id="$!companyVo.company.id" href="#" title="取消收藏"></a>
		                        	#else
									<a class="jd_collection" id="company_collect" data-id="$!companyVo.company.id" href="#" title="收藏"></a>
									#end
								#else
								<a class="inline jd_collection" href="#loginPop" title="登录"></a>
								#end
								
								<div class="clear"></div>

								<h1 title="福建平潭协创进出口贸易有限公司" class="fullname"></h1>


								<div class="clear oneword"><img width="17" height="15" src="${rc.contextPath}/img/quote_l.png">&nbsp; <span>$!companyVo.company.company_brief</span> &nbsp;<img width="17" height="15" src="${rc.contextPath}/img/quote_r.png"></div>
							</div>
							<div class="clear"></div>
						</div>

						<div class="c_breakline"></div>

						<div id="Product">

							<div class="product_wrap">

								<!--无产品 -->
								<!-- <dl class="c_section dn">
									<dt>
					                    	<h2><em></em>公司产品</h2>
					                    </dt>
									<dd>
										<div class="addnew">
											酒香不怕巷子深已经过时啦！<br> 把自己优秀的产品展示出来吸引人才围观吧！
											<br>
											<a class="product_edit" href="javascript:void(0)">+添加公司产品</a>
										</div>
									</dd>
								</dl> -->

								<!--产品编辑-->
								<!--有产品-->
								<dl class="c_product">
									<dt>
					                    	<h2><em></em>公司产品</h2>
					                    </dt>
									<dd>
										#if($!companyVo.product.product_image)
										<img width="380" height="220" alt="$!companyVo.product.product_name" src="http://127.0.0.1:8080/image/productimage/$!companyVo.product.product_image">
										#else
										<img width="380" height="220" alt="产品" src="${rc.contextPath}/img/product_default.png">
										#end
										<div class="cp_intro">
											<h3><a target="_blank" href="http://www.weimob.com">$!companyVo.product.product_name</a></h3>
											<div class="scroll-pane" style="overflow: hidden; padding: 0px; width: 260px;">

												<div class="jspContainer" style="width: 260px; height: 140px;">
													<div class="jspPane" style="padding: 0px; top: 0px; width: 260px;">
														<div>$!companyVo.product.product_brief</div>
													</div>
												</div>
											</div>
										</div>
									</dd>
								</dl>

							</div>
						</div>
						<!-- end #Product -->

						<div id="Profile">
							<div class="profile_wrap">

								<!--有介绍-->
								<dl class="c_section">
									<dt>
					                   		<h2><em></em>公司介绍</h2>
					                   	</dt>
									<dd>
										<div class="c_intro">$!companyVo.companyDetail.detail_content</div>
									</dd>
								</dl>
							</div>

						</div>
						<!-- end #Profile -->

						<!--[if IE 7]> <br /> <![endif]-->

						<!--无招聘职位-->
						<dl id="noJobs" class="c_section">
							<dt>
		                    	<h2><em></em>招聘职位</h2>
		                    </dt>
							<dd>
								<ul class="hot_pos reset" id="job-list">
								#foreach($!job in $!jobList)
									<li class="odd clearfix">
										<div class="hot_pos_l">
											<div class="mb10">
												<a href="${rc.contextPath}/job/detail/$!job.id" title="$!job.job_name" target="_blank">$!job.job_name</a>
												&nbsp;
												<span class="c9">[$!job.location_name]</span>
											</div>
											<span><em class="c7">月薪：</em>$!{job.job_salary_min}k-$!{job.job_salary_max}k</span>
											#if($!job.job_request_worktime == 0)
											<span><em class="c7">经验：</em> 不限</span>
											#end
											#if($!job.job_request_worktime == 1)
											<span><em class="c7">经验：</em> 应届毕业生</span>
											#end
											#if($!job.job_request_worktime == 2)
											<span><em class="c7">经验：</em> 1年以下</span>
											#end
											#if($!job.job_request_worktime == 3)
											<span><em class="c7">经验：</em> 1-3年</span>
											#end
											#if($!job.job_request_worktime == 4)
											<span><em class="c7">经验：</em> 3-5年</span>
											#end
											#if($!job.job_request_worktime == 5)
											<span><em class="c7">经验：</em> 5-10年</span>
											#end
											#if($!job.job_request_worktime == 0)
											<span><em class="c7">经验：</em> 10年以上</span>
											#end
											#if($!job.job_request_edubackground == 0)
											<span><em class="c7">最低学历： </em>不限</span>
											#end
											#if($!job.job_request_edubackground == 1)
											<span><em class="c7">最低学历： </em>专科</span>
											#end
											#if($!job.job_request_edubackground == 0)
											<span><em class="c7">最低学历： </em>本科</span>
											#end
											#if($!job.job_request_edubackground == 0)
											<span><em class="c7">最低学历： </em>硕士</span>
											#end
											#if($!job.job_request_edubackground == 0)
											<span><em class="c7">最低学历： </em>博士</span>
											#end
											<br />
											<span><em class="c7">职位诱惑：</em>$!job.job_request_brief</span>
											<br />
											<span>$!job.gmt_create</span>
										</div>
										<div class="hot_pos_r">
											<span><em class="c7">领域： </em>$!job.domain_name</span>
											
										</div>
									</li>
								#end
								</ul>
								<div class="pagination" style="margin: 0px 0 20px;" id="jobPagination">$!jobPage.pageString</div>
							</dd>
						</dl>

						<div id="flag"></div>
					</div>
					<!-- end .content_l -->

					<div class="content_r">
						<div id="Tags">
							<div id="c_tags_show" class="c_tags solveWrap">
								<table>
									<tbody>
										<tr>
											<td width="45">地点</td>
											<td>$!companyVo.company.location_name</td>
										</tr>
										<tr>
											<td>领域</td>
											<!-- 支持多选 -->
											<td title="$!companyVo.company.domain_name">$!companyVo.company.domain_name</td>
										</tr>
										<tr>
											<td>规模</td>
											#if($!companyVo.company.company_scale == 0)
											<td>少于15人</td>
											#end
											#if($!companyVo.company.company_scale == 1)
											<td>15-50人</td>
											#end
											#if($!companyVo.company.company_scale == 2)
											<td>50-150人</td>
											#end
											#if($!companyVo.company.company_scale == 3)
											<td>150-500人</td>
											#end
											#if($!companyVo.company.company_scale == 4)
											<td>500-2000人</td>
											#end
											#if($!companyVo.company.company_scale == 5)
											<td>2000人以上</td>
											#end
										</tr>
										<tr>
											<td>主页</td>
											<td>
												<a rel="nofollow" title="$!companyVo.company.company_website" target="_blank" href="$!companyVo.company.company_website">$!companyVo.company.company_website</a>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<!-- end #Tags -->

						<dl class="c_section c_stages">
							<dt>
                    	<h2><em></em>融资阶段</h2>
                    </dt>
							<dd>
								<ul class="reset stageshow">
									<li>目前阶段：<span class="c5">
											#if($!companyVo.company.company_develop == 0)
											未融资
											#end
											#if($!companyVo.company.company_develop == 1)
											天使轮
											#end
											#if($!companyVo.company.company_develop == 2)
											A轮
											#end
											#if($!companyVo.company.company_develop == 3)
											B轮
											#end
											#if($!companyVo.company.company_develop == 4)
											C轮
											#end
											#if($!companyVo.company.company_develop == 5)
											D轮以上
											#end
											#if($!companyVo.company.company_develop == 6)
											上市公司
											#end
									</span></li>
								</ul>
							</dd>
						</dl>
						<!-- end .c_stages -->
						

						<!--公司深度报道-->
						<div id="Reported">
							<!--无报道-->
							<dl class="c_section c_reported">
								<dt>
		                			<h2><em></em>公司评价</h2>
		                		</dt>
								<dd>
									<!-- 编辑报道 -->
									<ul class="list-content" id="comment-list">
										#foreach($!comment in $!commentList)
										<li class="review-area clearfix">
											<div class="review-avater">
												<img class="lazy_img"
													data-original="//127.0.0.1:8080/image/portrait/$!comment.comment_user.portrait"
													alt="评价人头像" width="50" height="50" rel="nofollow"
													src="http://127.0.0.1:8080/image/portrait/$!comment.comment_user.portrait"
													style="display: inline-block;">
													<span class="review-name">$!comment.comment_user.nickname</span> 
											</div>
											<div class="review-right">
												<div class="review-stars clearfix">
												</div>
	
												<div class="review-content">
													<div>
														<span class="review-type">[评价]</span>
														<div class="interview-process">$!comment.comment_detail</div>
													</div>
												</div>
												<div class="review-action">
													<a rel="nofollow" href="javascript:;"
														class="useful no_select" data-id="$!comment.id">点赞&nbsp;(&nbsp;<span>$!comment.comment_prefer</span>&nbsp;)<i></i></a>
												</div>
												<div class="review-reply" data-index="0"></div>
											</div>
										</li>
										<hr/>
										#end
									</ul>
									<div class="pagination" style="margin: 0px 0 20px;" id="commentPagination">$!page.pageString</div>
									<div class="panel">
										<div class="panel-heading">
											<h5>回复</h5>
										</div>
										<div class="panel-body">
											<form action="${rc.contextPath}/company/addcomment" method="post">
												<input type="hidden" name="comment_company_id" value="$!companyVo.company.id"/>
												<textarea style="width: 200px;" name="comment_detail" placeholder="请输入评价内容" required="required"></textarea>
												#if($!curr_user)
												<button type="submit" class="btn fr btn_apply">提交</button>
												#else
												<a href="#loginPop" title="登录" class="inline btn fr btn_apply">登录</a>
												#end
											</form>
										</div>
									</div>
								</dd>
							</dl>
							<!-- end .c_reported -->
						</div>
						<!-- end #Reported -->

					</div>
				</div>

				<!-------------------------------------弹窗lightbox  ----------------------------------------->
				#parse("common/loginForm.html")
				<!------------------------------------- end ----------------------------------------->

				<script src="${rc.contextPath}/js/company.min.js" type="text/javascript"></script>
				<script>
					var avatar = {};
					avatar.uploadComplate = function(data) {
						var result = eval('(' + data + ')');
						if (result.success) {
							jQuery('#logoShow img').attr("src",
									ctx + '/' + result.content);
							jQuery.colorbox.close();
						}
					};
				</script>
				<div class="clear"></div>
				<a rel="nofollow" title="回到顶部" id="backtop" style="display: inline;"></a>
			</div>
			<!-- end #container -->
		</div>
		<!-- end #body -->
		<div id="footer">
			<div class="wrapper">
				<a rel="nofollow" target="_blank" href="about.html">联系我们</a>
				<a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
				<div class="copyright">&copy;2013-2014 TCU
					<a href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action" target="_blank">京ICP备14023790号-2</a>
				</div>
			</div>
		</div>

		<script src="${rc.contextPath}/js/core.min.js" type="text/javascript"></script>
		<script src="${rc.contextPath}/js/popup.min.js" type="text/javascript"></script>

		<!--  -->

	</body>
	<script type="text/javascript">
	$(document)
	.on(
			"click",
			"#commentPagination a",
			function(e) {
				var pageNum = $(this).attr("pageData");
				if (pageNum == 0 || isNaN(pageNum)) {
					return;
				}
				console.log(pageNum);
				jQuery.ajax({
					url	:	"${rc.contextPath}/company/comment/$!{companyVo.company.id}/"+pageNum,
					type:	"get",
					dataType:"json",
					success:	function(data){
							if(data.commentList.length==0){
								alert("已无更多评论！");
								return ;
							}
							var commentText='';
							var pageText='';
							for(i=0;i<data.commentList.length;i++){
								var commentid=data.commentList[i].id;
								var company_id=data.commentList[i].comment_company_id;
								var username = data.commentList[i].comment_user.nickname;
								var portrait = data.commentList[i].comment_user.portrait;
								var detail = data.commentList[i].comment_detail;
								var prefer = data.commentList[i].comment_prefer;
								commentText +='<li class="review-area clearfix">'+
								'<div class="review-avater">'+
								'<img class="lazy_img"'+
									' data-original="//127.0.0.1:8080/image/portrait/'+ portrait +'"'+
									' alt="评价人头像" width="50" height="50" rel="nofollow"'+
									' src="http://127.0.0.1:8080/image/portrait/'+ portrait +'"'+
									' style="display: inline-block;"> '+
									' <span class="review-name">'+ username +'</span> '+
							'</div>'+
							'<div class="review-right">'+
								'<div class="review-stars clearfix">'+
								'</div>'+
								'<div class="review-content"><div>'+
										'<span class="review-type">[评价]</span>'+
										'<div class="interview-process">'+ detail +'</div></div></div>'+
								'<div class="review-action">'+
									'<a rel="nofollow" href="javascript:;"'+
										' class="useful no_select" data-id="'+ commentid +'">点赞&nbsp;(&nbsp;<span>'+ prefer +'</span>&nbsp;)<i></i></a>'+
								'</div><div class="review-reply" data-index="0"></div></div></li>';
							}
							pageText += '<div class="pagination" style="margin: 0px 0 20px;" id="commentPagination">' + data.page.pageString + '</div>';
							$(".list-content").empty();
							$("#commentPagination").remove();
							$(".list-content").append(commentText);
							$(".list-content").after(pageText);
							location.href="#comment-list";
					}
				});
			});
	
	$(document)
	.on(
			"click",
			"#jobPagination a",
			function(e) {
				var pageNum = $(this).attr("pageData");
				if (pageNum == 0 || isNaN(pageNum)) {
					return;
				}
				jQuery.ajax({
					url	:	"${rc.contextPath}/company/detail/jobList/$!{companyVo.company.id}/"+pageNum,
					type:	"get",
					dataType:"json",
					success:	function(data){
							if(data.jobList.length==0){
								alert("已无更多招聘职位！");
								return ;
							}
							var jobText='';
							var jobPageText='';
							for(i=0;i<data.jobList.length;i++){
								var jobid = data.jobList[i].id;
								var job_name = data.jobList[i].job_name;
								var location_name = data.jobList[i].location_name;
								var salary_min = data.jobList[i].job_salary_min;
								var salary_max = data.jobList[i].job_salary_max;
								var workage = data.jobList[i].job_request_worktime;
								var request_worktime;
								if(workage == 0){
									request_worktime = "不限";
								}
								if(workage == 1){
									request_worktime = "应届毕业生";
								}
								if(workage == 2){
									request_worktime = "1年以下";
								}
								if(workage == 3){
									request_worktime = "1-3年";
								}
								if(workage == 4){
									request_worktime = "3-5年";
								}
								if(workage == 5){
									request_worktime = "5-10年";
								}
								if(workage == 0){
									request_worktime = "10年以上";
								}
								var eduback = data.jobList[i].job_request_edubackground;
								var request_edubackground;
								if(eduback == 0){
									request_edubackground = "不限";
								}
								if(eduback == 1){
									request_edubackground = "专科";
								}
								if(eduback == 2){
									request_edubackground = "本科";
								}
								if(eduback == 3){
									request_edubackground = "硕士";
								}
								if(eduback == 4){
									request_edubackground = "博士";
								}
								var job_brief = data.jobList[i].job_request_brief;
								var gmt_create = data.jobList[i].gmt_create;
								var domain_name = data.jobList[i].domain_name;
								jobText +='<li class="odd clearfix">'+
									'<div class="hot_pos_l"><div class="mb10">'+
									'<a href="${rc.contextPath}/job/detail/'+ jobid +'" title="'+ job_name +'" target="_blank">'+ job_name +'</a>'+
									'&nbsp;<span class="c9">['+ location_name +']</span></div>'+
								'<span><em class="c7">月薪：</em>'+ salary_min +'k-'+ salary_max +'k</span>'+
								'<span><em class="c7">经验：</em> '+ request_worktime +'</span>'+
								'<span><em class="c7">最低学历： </em>'+ request_edubackground +'</span><br />'+
								'<span><em class="c7">职位诱惑：</em>'+ job_brief +'</span>'+
								'<br /><span>'+ gmt_create +'</span></div>'+
							'<div class="hot_pos_r"><span><em class="c7">领域： </em>'+ domain_name +'</span></div></li>';
							}
							jobPageText += '<div class="pagination" style="margin: 0px 0 20px;" id="jobPagination">' + data.page.pageString + '</div>';
							$("#job-list").empty();
							$("#jobPagination").remove();
							$("#job-list").append(jobText);
							$("#job-list").after(jobPageText);
							location.href="#job-list";
					}
				});
			});
	
	/** 收藏公司**/
	$(document)
	.on(
			"click",
			"#company_collect",
			function(e) {
				jQuery.ajax({
					url	:	"${rc.contextPath}/user/collect/company?companyId="+$(this).data("id"),
					type:	"get",
					dataType:"json",
					success:	function(data){
						if(data.code == 200){
							alert(data.info);
							location.reload();
						}else{
							alert(data.info);
						}
					}
				});
			});
	
	$(document)
	.on(
			"click",
			".useful",
			function(e) {
				jQuery.ajax({
					url	:	"${rc.contextPath}/company/comment/prefer?id="+$(this).data("id"),
					type:	"get",
					dataType:"json",
					success:	function(data){
						if(data.code == 200){
							alert(data.info);
							location.reload();
						}else{
							alert(data.info);
						}
					}
				});
			});
	
	</script>

</html>